
/*
* @Description: 积分账户
* @Date: 2022-12-09 20:38:17
* @Author: lizhiqiang
*/
import { IntegralAccount } from "@/types/api"
import { get,post } from "@/utils/request"
/**
 * 保存积分账户
 * @param params 
 * @returns 
 */
export const S=(params:IntegralAccount)=>{
    return post('/integral-service/integral/account/save',params)
}
/**
 * 编辑积分账户
 * @param params 
 * @returns 
 */
export const U = (params:IntegralAccount)=>{
    return post('/integral-service/integral/account/update',params)
}
/**
 * 获取积分账户详情
 * @param pkAccount 
 * @returns 
 */
export const getAccountDetail = (pkAccount:string)=>{
    return get(`/integral-service/integral/account/info/${pkAccount}`)
}
/**
 * 获取积分账户列表
 * @param params 
 * @returns 
 */
export const GL =(params:IntegralAccount)=>{
    return post('/integral-service/integral/account/list',params)
}
/**
 * 删除积分账户
 * @param params 
 * @returns 
 */
export const D = (params:Array<string>)=>{
    return post('/integral-service/integral/account/deleteBatch',params)
}
/**
 * 激活积分账户
 * @param params 
 * @returns 
 */
export const activationAccount = (id: string)=>{
    return post(`/integral-service/integral/account/active/${id}`, null)
}
/**
 * 锁定积分账户
 * @param params 
 * @returns 
 */
export const lockingAccount = (id: string)=>{
    return post(`/integral-service/integral/account/lock/${id}`, null)
}
/**
 * 积分记录
 * @param params 
 * @returns 
 */
export const getAccountDcDetail = (params: any)=>{
    return post(`/integral-service/integral/account/adminQueryAccountDcDetail`, params)
}